<?php $this->load->view('admin/_header2') ?>

<table id="tablec" width=100% height=100% border=0 cellpadding=0 cellspacing=0 >
	<tr height=8% valign=top ><td style="background:#D2E0F2">
	<?
	echo form_open("admin/agent/queryagent",array("id" => "formagent","target" =>"query_context_order"));
	?>
	<table>
		<tr height=30>
			<td width=80 align=right >Customer:</td>
			<td><input id="txCustomer" type=text name="Customer" /></td>
			<td width=80 align=right  >Keyword:</td>
			<td><input id="txKeyword" type=text name="Keyword" /></td>
			<td>&nbsp;&nbsp;<input type=submit name="bbb" value="Search" /></td>
			<td><input type=button name="bbb" value="Add Agent" onclick="addagent();" /></td>
		</tr>	
	</table>
	<?
	echo form_close();
	?>
	
	</td></tr>
	
	<tr height=90% valign=top ><td>
		<iframe name=query_context_order width=100% height="100%" frameborder=0 ></iframe>
	</td></tr>
</table>
<div id="addwin" class="easyui-window" title="add Agent" closed="true" iconCls="icon-edit" style="width:680px;height:450px;padding:0px;background: #fafafa;">
	<div class="easyui-layout" fit="true">
		<div id="dvcontext" region="center" border="false" style="padding:10px;background:#fff;border:1px solid #ccc;">
			<iframe id="ifrawin" name="editcontext" src="" width=100% height=100% frameborder=0 ></iframe>
		</div>
	</div>
</div>
<script language="javascript">
	document.body.scroll="no";
	
	function addagent()
	{
		gd$("ifrawin").src="agent/addagent";
		$('#addwin').window({title:"add agent"}).window('open');
		
	}
</script>

<?php $this->load->view('admin/_footer1') ?>